From: Georges Basile Stavracas Neto Date: Fri, 13 Nov 2020 17:34:22 +0000 (-0300) Subject: appDisplay: Factor out function X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~754 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5d27a5a42a7e3e36eb88c54b63a2b314480705d0;p=gnome-shell.git appDisplay: Factor out function The function to update the multiline state of the title label will be reused by the next commit, so move it into a separate method. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1496 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 4bc662ea9..9c09a84c9 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -1495,7 +1495,7 @@ class AppViewItem extends St.Button { } } - _onHover() { + _updateMultiline() { if (!this.icon.label) return; @@ -1524,6 +1524,10 @@ class AppViewItem extends St.Button { }); } + _onHover() { + this._updateMultiline(); + } + _onDragBegin() { this._dragging = true; this.scaleAndFade();